package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.EmployeeUpdatePasswordDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    //新增员工
    void addEmp(EmployeeDTO employeeDTO);

    //分页查询所有员工信息
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    //启用、禁用员工账号
    void updateEmpStatus(Integer status, Long id);

    //根据id查询员工信息
    Employee selEmpById(Long id);

    //编辑员工信息
    void updateEmpData(EmployeeDTO employeeDTO);

    //修改员工密码
    boolean updateEmpPassword(EmployeeUpdatePasswordDTO employeeUpdatePasswordDTO);
}
